﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace AffiliateClick.Admin
{
    public partial class ManageReview : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Detail_Insert(object sender, EventArgs e)
        {
            dv_PageContent.ChangeMode(DetailsViewMode.Insert);

        }

        protected void dv_PageContent_ItemUpdated(object sender, DetailsViewUpdatedEventArgs e)
        {
            refresh();
        }

        protected void gv_Reviews_RowDeleted(object sender, GridViewDeletedEventArgs e)
        {
            refresh();
        }
        private void refresh()
        {
            gv_Reviews.DataBind();
        }
    }
}
